PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Reaction / Liquid Simmering / Martin - QBikal - Surface Turbulence IIeeeee hakanh mash-up k10.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=3 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.980 |
| 8 | fDecay=0.500 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=4 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=1 |
| 16 | bModWaveAlphaByVolume=1 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=0.527 |
| 27 | fWaveSmoothing=0.450 |
| 28 | fWaveParam=0.000 |
| 29 | fModWaveAlphaStart=0.000 |
| 30 | fModWaveAlphaEnd=1.320 |
| 31 | fWarpAnimSpeed=0.269 |
| 32 | fWarpScale=1.615 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.05013 |
| 42 | sx=0.99990 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.800 |
| 45 | wave_g=0.490 |
| 46 | wave_b=1.000 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.015 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=1.850 |
| 64 | mv_r=0.500 |
| 65 | mv_g=0.500 |
| 66 | mv_b=0.500 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=0.300 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=1 |
| 76 | wavecode_0_samples=506 |
| 77 | wavecode_0_sep=116 |
| 78 | wavecode_0_bSpectrum=1 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=1 |
| 81 | wavecode_0_bAdditive=0 |
| 82 | wavecode_0_scaling=1.07408 |
| 83 | wavecode_0_smoothing=0.00000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=0.700 |
| 88 | wave_0_per_point1= |
| 89 | wave_0_per_point2=n = int((reg00+.5)*sample); |
| 90 | wave_0_per_point3= |
| 91 | wave_0_per_point4=m = 30001+n/(reg00/reg01); |
| 92 | wave_0_per_point5=gmegabuf(m) = (value1+value2); |
| 93 | wave_0_per_point6= |
| 94 | wave_0_per_point7=x = gmegabuf(10000+n); |
| 95 | wave_0_per_point8=y = gmegabuf(15000+n); |
| 96 | wave_0_per_point9=a = gmegabuf(20000+n); |
| 97 | wave_0_per_point10= |
| 98 | wave_0_per_point11=b = min(max(gmegabuf(25000+n),0),1); |
| 99 | wave_0_per_point12=r = 1-b; |
| 100 | wave_0_per_point13=g = 0.5; |
| 101 | wavecode_1_enabled=1 |
| 102 | wavecode_1_samples=506 |
| 103 | wavecode_1_sep=0 |
| 104 | wavecode_1_bSpectrum=0 |
| 105 | wavecode_1_bUseDots=0 |
| 106 | wavecode_1_bDrawThick=1 |
| 107 | wavecode_1_bAdditive=0 |
| 108 | wavecode_1_scaling=0.89152 |
| 109 | wavecode_1_smoothing=0.82000 |
| 110 | wavecode_1_r=1.000 |
| 111 | wavecode_1_g=1.000 |
| 112 | wavecode_1_b=1.000 |
| 113 | wavecode_1_a=1.000 |
| 114 | wave_1_per_point1=n = int((reg00+.5)*sample) +reg00; |
| 115 | wave_1_per_point2= |
| 116 | wave_1_per_point3=x = gmegabuf(10000+n); |
| 117 | wave_1_per_point4=y = gmegabuf(15000+n); |
| 118 | wave_1_per_point5=a = gmegabuf(20000+n); |
| 119 | wave_1_per_point6= |
| 120 | wave_1_per_point7=b = min(max(gmegabuf(25000+n),0),1); |
| 121 | wave_1_per_point8=r = 1-b; |
| 122 | wave_1_per_point9=g = 0.5; |
| 123 | wave_1_per_point10= |
| 124 | wavecode_2_enabled=1 |
| 125 | wavecode_2_samples=506 |
| 126 | wavecode_2_sep=0 |
| 127 | wavecode_2_bSpectrum=0 |
| 128 | wavecode_2_bUseDots=0 |
| 129 | wavecode_2_bDrawThick=1 |
| 130 | wavecode_2_bAdditive=0 |
| 131 | wavecode_2_scaling=0.89152 |
| 132 | wavecode_2_smoothing=0.82000 |
| 133 | wavecode_2_r=1.000 |
| 134 | wavecode_2_g=1.000 |
| 135 | wavecode_2_b=1.000 |
| 136 | wavecode_2_a=1.000 |
| 137 | wave_2_per_point1=n = int((reg00+.5)*sample)+2*reg00; |
| 138 | wave_2_per_point2= |
| 139 | wave_2_per_point3= |
| 140 | wave_2_per_point4=x = gmegabuf(10000+n); |
| 141 | wave_2_per_point5=y = gmegabuf(15000+n); |
| 142 | wave_2_per_point6=a = gmegabuf(20000+n); |
| 143 | wave_2_per_point7= |
| 144 | wave_2_per_point8=b = min(max(gmegabuf(25000+n),0),1); |
| 145 | wave_2_per_point9=r = 1-b; |
| 146 | wave_2_per_point10=g = 0.5; |
| 147 | wave_2_per_point11= |
| 148 | wavecode_3_enabled=1 |
| 149 | wavecode_3_samples=506 |
| 150 | wavecode_3_sep=0 |
| 151 | wavecode_3_bSpectrum=1 |
| 152 | wavecode_3_bUseDots=0 |
| 153 | wavecode_3_bDrawThick=1 |
| 154 | wavecode_3_bAdditive=0 |
| 155 | wavecode_3_scaling=1.00000 |
| 156 | wavecode_3_smoothing=0.50000 |
| 157 | wavecode_3_r=1.000 |
| 158 | wavecode_3_g=1.000 |
| 159 | wavecode_3_b=1.000 |
| 160 | wavecode_3_a=1.000 |
| 161 | wave_3_per_point1=n = int((reg00-.5)*sample)+3*reg00; |
| 162 | wave_3_per_point2= |
| 163 | wave_3_per_point3= |
| 164 | wave_3_per_point4=x = gmegabuf(10000+n); |
| 165 | wave_3_per_point5=y = gmegabuf(15000+n); |
| 166 | wave_3_per_point6=a = gmegabuf(20000+n); |
| 167 | wave_3_per_point7= |
| 168 | wave_3_per_point8=b = min(max(gmegabuf(25000+n),0),1); |
| 169 | wave_3_per_point9=r = 1-b; |
| 170 | wave_3_per_point10=g = 0.5; |
| 171 | shapecode_0_enabled=0 |
| 172 | shapecode_0_sides=4 |
| 173 | shapecode_0_additive=1 |
| 174 | shapecode_0_thickOutline=0 |
| 175 | shapecode_0_textured=1 |
| 176 | shapecode_0_num_inst=1 |
| 177 | shapecode_0_x=0.500 |
| 178 | shapecode_0_y=0.500 |
| 179 | shapecode_0_rad=2.37185 |
| 180 | shapecode_0_ang=0.00000 |
| 181 | shapecode_0_tex_ang=1.57080 |
| 182 | shapecode_0_tex_zoom=0.93101 |
| 183 | shapecode_0_r=0.000 |
| 184 | shapecode_0_g=1.000 |
| 185 | shapecode_0_b=1.000 |
| 186 | shapecode_0_a=0.400 |
| 187 | shapecode_0_r2=0.000 |
| 188 | shapecode_0_g2=1.000 |
| 189 | shapecode_0_b2=0.000 |
| 190 | shapecode_0_a2=0.000 |
| 191 | shapecode_0_border_r=1.000 |
| 192 | shapecode_0_border_g=1.000 |
| 193 | shapecode_0_border_b=0.000 |
| 194 | shapecode_0_border_a=0.000 |
| 195 | shapecode_1_enabled=0 |
| 196 | shapecode_1_sides=12 |
| 197 | shapecode_1_additive=1 |
| 198 | shapecode_1_thickOutline=0 |
| 199 | shapecode_1_textured=1 |
| 200 | shapecode_1_num_inst=1 |
| 201 | shapecode_1_x=0.300 |
| 202 | shapecode_1_y=0.800 |
| 203 | shapecode_1_rad=1.06345 |
| 204 | shapecode_1_ang=0.00000 |
| 205 | shapecode_1_tex_ang=1.63363 |
| 206 | shapecode_1_tex_zoom=0.46617 |
| 207 | shapecode_1_r=1.000 |
| 208 | shapecode_1_g=1.000 |
| 209 | shapecode_1_b=0.000 |
| 210 | shapecode_1_a=1.000 |
| 211 | shapecode_1_r2=0.000 |
| 212 | shapecode_1_g2=0.000 |
| 213 | shapecode_1_b2=0.000 |
| 214 | shapecode_1_a2=1.000 |
| 215 | shapecode_1_border_r=1.000 |
| 216 | shapecode_1_border_g=0.000 |
| 217 | shapecode_1_border_b=0.000 |
| 218 | shapecode_1_border_a=0.000 |
| 219 | shapecode_2_enabled=0 |
| 220 | shapecode_2_sides=13 |
| 221 | shapecode_2_additive=1 |
| 222 | shapecode_2_thickOutline=0 |
| 223 | shapecode_2_textured=0 |
| 224 | shapecode_2_num_inst=5 |
| 225 | shapecode_2_x=0.650 |
| 226 | shapecode_2_y=0.380 |
| 227 | shapecode_2_rad=0.57049 |
| 228 | shapecode_2_ang=0.00000 |
| 229 | shapecode_2_tex_ang=0.00000 |
| 230 | shapecode_2_tex_zoom=0.73678 |
| 231 | shapecode_2_r=1.000 |
| 232 | shapecode_2_g=0.000 |
| 233 | shapecode_2_b=0.000 |
| 234 | shapecode_2_a=0.700 |
| 235 | shapecode_2_r2=0.000 |
| 236 | shapecode_2_g2=0.000 |
| 237 | shapecode_2_b2=0.000 |
| 238 | shapecode_2_a2=0.000 |
| 239 | shapecode_2_border_r=0.500 |
| 240 | shapecode_2_border_g=0.500 |
| 241 | shapecode_2_border_b=0.000 |
| 242 | shapecode_2_border_a=0.000 |
| 243 | shapecode_3_enabled=0 |
| 244 | shapecode_3_sides=14 |
| 245 | shapecode_3_additive=1 |
| 246 | shapecode_3_thickOutline=1 |
| 247 | shapecode_3_textured=1 |
| 248 | shapecode_3_num_inst=1 |
| 249 | shapecode_3_x=0.600 |
| 250 | shapecode_3_y=0.550 |
| 251 | shapecode_3_rad=0.97237 |
| 252 | shapecode_3_ang=1.25664 |
| 253 | shapecode_3_tex_ang=0.00000 |
| 254 | shapecode_3_tex_zoom=0.34933 |
| 255 | shapecode_3_r=1.000 |
| 256 | shapecode_3_g=0.600 |
| 257 | shapecode_3_b=0.000 |
| 258 | shapecode_3_a=1.000 |
| 259 | shapecode_3_r2=0.000 |
| 260 | shapecode_3_g2=0.000 |
| 261 | shapecode_3_b2=1.000 |
| 262 | shapecode_3_a2=0.000 |
| 263 | shapecode_3_border_r=0.200 |
| 264 | shapecode_3_border_g=0.700 |
| 265 | shapecode_3_border_b=0.500 |
| 266 | shapecode_3_border_a=0.000 |
| 267 | per_frame_init_1=index = 0; |
| 268 | per_frame_init_2=loop (70000, |
| 269 | per_frame_init_3= megabuf(index) = 0; |
| 270 | per_frame_init_4= gmegabuf(index) = 0; |
| 271 | per_frame_init_5= index = index + 1; |
| 272 | per_frame_init_6=); |
| 273 | per_frame_init_7= |
| 274 | per_frame_init_8=zang = 1; |
| 275 | per_frame_init_9= |
| 276 | per_frame_init_10=yang = 0; |
| 277 | per_frame_init_11=zang = 2; |
| 278 | per_frame_1= |
| 279 | per_frame_2=xlen = 45; ylen = 45; flen = 20; reg00 = xlen*ylen/4; reg01=reg00/4; |
| 280 | per_frame_3=dec_med = 1-0.06*30/fps; dec_slow = 1-0.02*30/fps; dec_f = pow (0.8, 30/fps); |
| 281 | per_frame_4=q30 = dec_slow; |
| 282 | per_frame_5=smooth = max(1,pow(6,fps/30)-2); // >= 0; Ausbreitungsgeschwindigkeit |
| 283 | per_frame_6= |
| 284 | per_frame_7=//"Classic" beat reaction |
| 285 | per_frame_8=cbeat = bass+mid+treb; |
| 286 | per_frame_9=decc = if (vol>cbeat,0.8,dec_med); |
| 287 | per_frame_10=vol = vol * decc + (1-decc)*cbeat; |
| 288 | per_frame_11=avg = avg*dec_slow + cbeat*(1-dec_slow); |
| 289 | per_frame_12=is_beat = above(cbeat, 1.5*avg) * above (time, tc0+.2); |
| 290 | per_frame_13=tc0 = if (bor(is_beat, bd_bt),time,tc0); |
| 291 | per_frame_14=peak = if (is_beat,cbeat,peak*dec_med); |
| 292 | per_frame_15= |
| 293 | per_frame_16= |
| 294 | per_frame_17=//Gleichanteil entfernen und normalisieren |
| 295 | per_frame_18=ind = 0; sum = 0; amp = 0.01; |
| 296 | per_frame_19=loop (reg01, |
| 297 | per_frame_20= sum = sum + gmegabuf(ind+30000)/(reg01); |
| 298 | per_frame_21= amp = amp + pow(gmegabuf(ind+30000),2); |
| 299 | per_frame_22= ind = ind+1; |
| 300 | per_frame_23=); |
| 301 | per_frame_24=ind = 0; amp_= amp_*dec_med + (1-dec_med)*sqrt(amp)/reg01*600; |
| 302 | per_frame_25=loop (reg01, |
| 303 | per_frame_26= megabuf(ind+30000)= (gmegabuf(ind+30000)-sum)/amp_; |
| 304 | per_frame_27= ind = ind+1; |
| 305 | per_frame_28=); |
| 306 | per_frame_29= |
| 307 | per_frame_30=// Spectrum of spectrum ! |
| 308 | per_frame_31=index2 = 0; |
| 309 | per_frame_32=loop(flen, //Frequency step |
| 310 | per_frame_33= index=0; real= 0; imag = 0; |
| 311 | per_frame_34= loop (flen, |
| 312 | per_frame_35= real = real + cos(index/flen*6.28*index2)*megabuf(index*reg01/8+30002); |
| 313 | per_frame_36= imag = imag + sin(index/flen*6.28*index2)*megabuf(index*reg01/8+30002); |
| 314 | per_frame_37= index=index+1; |
| 315 | per_frame_38= ); |
| 316 | per_frame_39= megabuf(10000+index2)= megabuf(10000+index2) * dec_f + real; |
| 317 | per_frame_40= megabuf(15000+index2)= megabuf(15000+index2) * dec_f + imag; |
| 318 | per_frame_41= index2 = index2+1; |
| 319 | per_frame_42= ); |
| 320 | per_frame_43= |
| 321 | per_frame_44=//Anregung |
| 322 | per_frame_45=ind = 1; |
| 323 | per_frame_46=loop (flen/2, |
| 324 | per_frame_47= cx = megabuf(10000+ind); |
| 325 | per_frame_48= cy = megabuf(15000+ind); |
| 326 | per_frame_49= yind = -1; |
| 327 | per_frame_50= loop (3, |
| 328 | per_frame_51= xind = -1; |
| 329 | per_frame_52= loop (3, |
| 330 | per_frame_53= ox = ((cx+.5)*xlen+xind)%xlen; |
| 331 | per_frame_54= oy = ((cy+.5)*ylen+yind)%ylen; |
| 332 | per_frame_55= amp = (cx*cx+cy*cy)*3; |
| 333 | per_frame_56= megabuf (oy*ylen+ox) = megabuf (oy*ylen+ox) |
| 334 | per_frame_57= - 2*30/fps*sqrt(amp)*above(amp,.02)/(1+xind*xind+yind*yind); |
| 335 | per_frame_58= xind = xind+1; |
| 336 | per_frame_59= ); |
| 337 | per_frame_60= yind = yind+1; |
| 338 | per_frame_61= ); |
| 339 | per_frame_62= ind = ind+1; |
| 340 | per_frame_63=); |
| 341 | per_frame_64= |
| 342 | per_frame_65=//Simulation |
| 343 | per_frame_66=yind = 0; |
| 344 | per_frame_67=loop (ylen, |
| 345 | per_frame_68= xind = 0; |
| 346 | per_frame_69= loop (xlen, |
| 347 | per_frame_70= megabuf(yind*ylen+xind+5000) = //megabuf ab 5000 ist nur Zwischenspeicher |
| 348 | per_frame_71= dec_med*((gmegabuf(yind*ylen+(xind+1)%xlen) + |
| 349 | per_frame_72= gmegabuf(yind*ylen+(xlen+xind-1)%xlen) + |
| 350 | per_frame_73= gmegabuf(((yind+1)%ylen)*ylen+xind) + |
| 351 | per_frame_74= gmegabuf(((yind+ylen-1)%ylen)*ylen+xind) |
| 352 | per_frame_75= +gmegabuf(yind*ylen+xind)*smooth*4)/(2+2*smooth) - megabuf(yind*ylen+xind)); |
| 353 | per_frame_76= xind = xind+1; |
| 354 | per_frame_77= ); |
| 355 | per_frame_78= yind = yind+1; |
| 356 | per_frame_79=); |
| 357 | per_frame_80= |
| 358 | per_frame_81=//Projektionsparameter |
| 359 | per_frame_82= |
| 360 | per_frame_83=bindex += is_beat; |
| 361 | per_frame_84= |
| 362 | per_frame_85=if (is_beat && (bindex%4==0), ran2 = (rand(100)-50)/50,0 ); |
| 363 | per_frame_86=if (is_beat && (bindex%4==2), ran3 = (rand(100)-50)/50,0 ); |
| 364 | per_frame_87=if (is_beat && (bindex%6==5), ran4 = (rand(100)-50)/50,0 ); |
| 365 | per_frame_88= |
| 366 | per_frame_89=trelx += ran2/fps/18; |
| 367 | per_frame_90=trely += ran3/fps/2; |
| 368 | per_frame_91=trelz += ran4/fps/6; |
| 369 | per_frame_92=zang = 6*sin(trelz); |
| 370 | per_frame_93=xang = 6*sin(zang/5+trelx); |
| 371 | per_frame_94=yang = 6*sin(zang/3*0+trely); |
| 372 | per_frame_95= |
| 373 | per_frame_96=q1 = cos(xang);q2 = sin(xang);q3 = cos(yang); |
| 374 | per_frame_97=q4 = sin(yang);q5 = cos(zang);q6 = sin(zang); |
| 375 | per_frame_98=fov = 1; |
| 376 | per_frame_99= |
| 377 | per_frame_100=//Umkopieren und Projektion |
| 378 | per_frame_101=yind = 0; |
| 379 | per_frame_102=loop (ylen, |
| 380 | per_frame_103= xind = 0; |
| 381 | per_frame_104= loop (xlen, |
| 382 | per_frame_105= ind = yind*ylen+xind; |
| 383 | per_frame_106= megabuf(ind) = gmegabuf(ind); |
| 384 | per_frame_107= gmegabuf(ind) = megabuf(ind+5000); |
| 385 | per_frame_108= oz = yind - ylen/2; //# |
| 386 | per_frame_109= ox = if(bnot(yind%2),xind,xlen-xind-1); |
| 387 | per_frame_110= oy0a = (oy0+oy0a)/2.5; |
| 388 | per_frame_111= oy = gmegabuf(yind*ylen+ox); oy0 = oy; |
| 389 | per_frame_112= ox = ox - xlen/2; |
| 390 | per_frame_113= mx = ox*q5 - oy*q6; my = ox*q6 + oy*q5; |
| 391 | per_frame_114= ox = mx; oy = my; |
| 392 | per_frame_115= mx = ox*q3 + oz*q4; mz = - ox*q4 + oz*q3; |
| 393 | per_frame_116= ox = mx; oz = mz; |
| 394 | per_frame_117= my = oy*q1 - oz*q2; mz = oy*q2 + oz*q1; |
| 395 | per_frame_118= z0 = (10*sin(trelz*14)); |
| 396 | per_frame_119= oy = my; oz = mz+z0; |
| 397 | per_frame_120= gmegabuf(10000+ind) = fov*ox/(oz+60*fov)+.5; |
| 398 | per_frame_121= gmegabuf(15000+ind) = fov*oy/(oz+60*fov)+.5; |
| 399 | per_frame_122= hell= max(min(.5+oy0/4,1),0.2); //Helligkeit |
| 400 | per_frame_123= gmegabuf(20000+ind) = max(min(hell* (.5+ (oy0a-oy0)*0.1),1),0.1); |
| 401 | per_frame_124= gmegabuf(25000+ind) = oy0/16+.5;; |
| 402 | per_frame_125= xind = xind+1; |
| 403 | per_frame_126= ); |
| 404 | per_frame_127= yind = yind+1; |
| 405 | per_frame_128=); |
| 406 | per_frame_129= |
| 407 | per_frame_130=q29 = 10/(z0+15); |
| 408 | per_frame_131=q32 = aspecty; |
| 409 | per_frame_132=q28 = min (vol/3-0.25,1); |
| 410 | per_frame_133=monitor = q28; |
| 411 | warp_1=`shader_body |
| 412 | warp_2=`{ |
| 413 | warp_3=` |
| 414 | warp_4=` float3 txr = float3(uv,q1*0.1); |
| 415 | warp_5=` float2 uv2 = uv; |
| 416 | warp_6=` uv2 = uv + texsize.zx*(q3,q3); |
| 417 | warp_7=` float3 color = tex2D(sampler_noise_lq, uv2) - 0.5; |
| 418 | warp_8=` color += tex2D(sampler_noise_mq, uv2) - 0.5; |
| 419 | warp_9=` color += tex2D(sampler_noise_hq, uv2) - 0.5; |
| 420 | warp_10=` uv += color*0.01; |
| 421 | warp_11=` uv.y += abs(color*0.01) + bass_att*0.01; |
| 422 | warp_12=` |
| 423 | warp_13=` ret = tex2D( sampler_main, (uv)*0.95 + GetBlur1((uv - 0.5)*0.9 + 0.5)*0.1 ).xyz; |
| 424 | warp_14=` ret = ret-0.01;// - 0.08; //or try: ret -= 0.004; |
| 425 | warp_15=`} |
| 426 | comp_1=`sampler sampler_pw_noise_lq; |
| 427 | comp_2=` |
| 428 | comp_3=`float2 rs, rss, rss0, tmp, uvo; |
| 429 | comp_4=`float3 noise; |
| 430 | comp_5=` |
| 431 | comp_6=`float2 complex_div(float2 numerator, float2 denominator){ |
| 432 | comp_7=` return float2( numerator.x*denominator.x + numerator.y*denominator.y, |
| 433 | comp_8=` numerator.y*denominator.x - numerator.x*denominator.y)/ |
| 434 | comp_9=` (denominator.x*denominator.x + denominator.y*denominator.y); |
| 435 | comp_10=`} |
| 436 | comp_11=` |
| 437 | comp_12=`float2 uv_polar(float2 domain, float2 center){ |
| 438 | comp_13=` float2 c = domain - center; |
| 439 | comp_14=` float rad_hq = length(c); |
| 440 | comp_15=` float ang_hq = atan2(c.x,c.y); |
| 441 | comp_16=` return float2(ang_hq, rad_hq); |
| 442 | comp_17=`} |
| 443 | comp_18=` |
| 444 | comp_19=`float2 uv_polar_logarithmic(float2 domain, float2 center, int fins, float log_factor, float2 coord){ |
| 445 | comp_20=` float2 polar = uv_polar(domain, center); |
| 446 | comp_21=` return float2(polar.x*fins+coord.x, log_factor*log(polar.y) + coord.y); |
| 447 | comp_22=`} |
| 448 | comp_23=` |
| 449 | comp_24=`float2 uv_moebius_transformation(float2 domain, float2 zeroPoint, float2 infinityPoint,float zoom){ |
| 450 | comp_25=` return complex_div((domain - zeroPoint)*zoom, domain - infinityPoint)+0.5; |
| 451 | comp_26=`} |
| 452 | comp_27=` |
| 453 | comp_28=`float2 uv_bipolar_logarithmic(float2 domain, float2 northPole, float2 southPole, int fins, float log_factor, float2 coord){ |
| 454 | comp_29=` float2 help_uv = uv_moebius_transformation(domain, northPole, southPole, 1); |
| 455 | comp_30=` return uv_polar_logarithmic(help_uv,0.5,fins,log_factor,coord)*float2(M_INV_PI_2,1); |
| 456 | comp_31=`} |
| 457 | comp_32=` |
| 458 | comp_33=`float2 uv_scale(float2 domain, float2 center, float2 scale){ |
| 459 | comp_34=` return center + (domain-center)*scale; |
| 460 | comp_35=`} |
| 461 | comp_36=`float2 uv_lens_half_sphere(float2 domain, float2 position, float radius, float refractivity){ |
| 462 | comp_37=` float2 polar = uv_polar(domain, position); |
| 463 | comp_38=` float cone = saturate(1-polar.y/radius); |
| 464 | comp_39=` float halfsphere = sqrt(1-pow(cone-1,2)); |
| 465 | comp_40=` float w = atan2(1-cone,halfsphere); |
| 466 | comp_41=` float refrac_w = w-asin(sin(w)/refractivity); |
| 467 | comp_42=` float refrac_d = 1-cone - sin(refrac_w)*halfsphere/cos(refrac_w); |
| 468 | comp_43=` float2 refrac_uv =position+float2(sin(polar.x),cos(polar.x))*refrac_d*radius; |
| 469 | comp_44=` bool mask =(length(domain-position)<radius); |
| 470 | comp_45=` return !mask*domain + |
| 471 | comp_46=` mask*refrac_uv; |
| 472 | comp_47=`} |
| 473 | comp_48=` |
| 474 | comp_49=`/* code from Martins hardcore mix - Danke ;) */ |
| 475 | comp_50=`float hardcore_stars(float2 domain, float2 center, float o){ |
| 476 | comp_51=` |
| 477 | comp_52=` float2 uv1 = domain-center; |
| 478 | comp_53=` rss0.x = atan2(uv1.x, uv1.y)/3.1416; |
| 479 | comp_54=` rss0.y = .003/(length (uv1)); |
| 480 | comp_55=` rss = float2 (rss0.x+q1/3,rss0.y+time+o); |
| 481 | comp_56=` rss = mul(rss,float2x2(.7,.7,-.7,.7)); |
| 482 | comp_57=` float noise = (tex2D(sampler_pw_noise_lq,rss/32)-.5 >= 0); |
| 483 | comp_58=` tmp = abs(frac(rss*8)-.5); |
| 484 | comp_59=` float3 dots = saturate(.04/length(tmp)) *noise; |
| 485 | comp_60=` rss = float2 (rss0.x,rss0.y+(time+o)/4); |
| 486 | comp_61=` rss = mul(rss,float2x2(.7,.7,-.7,.7)); |
| 487 | comp_62=` noise = (tex2D(sampler_pw_noise_lq,rss/32)-.5 >= 0); |
| 488 | comp_63=` tmp = abs(frac(rss*8)-.5); |
| 489 | comp_64=` dots += saturate(.02/length(tmp)) * noise; |
| 490 | comp_65=` dots *= saturate(.2/abs(rss0.y)); |
| 491 | comp_66=` return dots*dots; |
| 492 | comp_67=`return 0; |
| 493 | comp_68=`} |
| 494 | comp_69=` |
| 495 | comp_70=` |
| 496 | comp_71=` |
| 497 | comp_72=` |
| 498 | comp_73=` |
| 499 | comp_74=` |
| 500 | comp_75=`shader_body |
| 501 | comp_76=`{ |
| 502 | comp_77=`uv = 0.5 + (uv-0.5)*aspect.wz; |
| 503 | comp_78=`time *= 0.6; |
| 504 | comp_79=` |
| 505 | comp_80=`float2 pole1 =float2(0.1,0.5); |
| 506 | comp_81=`float2 pole2 =float2(0.9,0.5); |
| 507 | comp_82=` |
| 508 | comp_83=`float stars = hardcore_stars(uv,pole1,0) + hardcore_stars(uv,pole2,2); |
| 509 | comp_84=` |
| 510 | comp_85=`uv = uv_bipolar_logarithmic(uv, pole1, pole2, 2, 0.3, float2(q26,q27)*float2(8,1)); |
| 511 | comp_86=`uv = 0.5 + (1.0 - abs( frac( uv * 0.5 ) * 2 - 1.0 )-0.5)*0.98; // Eo.S. mirror code with cutted borders |
| 512 | comp_87=`uv = uv.yx; |
| 513 | comp_88=`ret = lerp(GetPixel(uv),1-GetPixel(uv)*1.5,stars); |
| 514 | comp_89=`} |
| 515 | comp_90=` |
| 516 | comp_91=` |